export const paramConfig = {
  projectId: '2',
  projectName: '测试数据1',
  standardCode: 'GB/T 50081-2019',
  description: '测试1',
  paramGroups: [
    {
      groupId: 'GRPx27wNQ_0',
      groupName: '参数组1',
      isNested: false,
      allowDynamicRows: false,
      maxRows: 3,
      sortOrder: 2,
      childGroups: [],
      paramItems: [
        {
          paramId: 'PARAMkpglYW5V',
          paramName: '新参数1',
          paramCode: 'a_ui8b',
          dataType: 'number',
          paramType: 'base',
          unit: '',
          required: false,
          calculationExpr: '',
          dependencies: [],
          options: [],
          validateRule: {
            min: 1,
            max: 100,
            required: true,
            requiredMsg: '此字段为必填项',
            rangeMsg: '请输入1到100之间的数'
          },
          conditionShow: {},
          precision: 1,
          columnWidth: 120,
          placeholder: '',
          isMultiMeasure: false,
          multiMeasureCount: 1,
          sortOrder: 1
        },
        {
          paramId: 'PARAMLQoGTiTn',
          paramName: '新参数2',
          paramCode: 'a_udfi',
          dataType: 'text',
          paramType: 'base',
          unit: '',
          required: false,
          calculationExpr: '',
          dependencies: [],
          options: [],
          validateRule: {
            required: true,
            requiredMsg: '此字段为必填项',
            regex: '^\\d+$',
            regexMsg: '此字段只能输入数字'
          },
          conditionShow: {},
          precision: 1,
          columnWidth: 120,
          placeholder: '',
          isMultiMeasure: false,
          multiMeasureCount: 1,
          sortOrder: 2
        },
        {
          paramId: 'PARAMOOO1UEZb',
          paramName: '新参数',
          paramCode: 'a_u9bh',
          dataType: 'number',
          paramType: 'calculation',
          unit: 'kp',
          required: false,
          calculationExpr: 'ROUND(a_ui8b * 1.0, 2)',
          dependencies: [
            'a_ui8b'
          ],
          options: [],
          validateRule: {
            required: false,
            requiredMsg: '此字段为必填项',
            rangeMsg: ''
          },
          conditionShow: {},
          precision: 1,
          columnWidth: 120,
          placeholder: '',
          isMultiMeasure: false,
          multiMeasureCount: 1,
          sortOrder: 3
        }
      ]
    },
    {
      groupId: 'GRPVr2cDi_1',
      groupName: '参数组2',
      isNested: true,
      allowDynamicRows: false,
      maxRows: 3,
      sortOrder: 2,
      childGroups: [
        {
          groupId: 'CHILDAmy2_0',
          groupName: '子组1',
          paramItems: [
            {
              paramId: 'PARAM507QIVU8',
              paramName: '新参数3',
              paramCode: 'a_xqgx',
              dataType: 'text',
              paramType: 'base',
              unit: '',
              required: false,
              calculationExpr: '',
              dependencies: [],
              options: [],
              validateRule: {},
              conditionShow: {},
              precision: 1,
              columnWidth: 120,
              placeholder: '',
              isMultiMeasure: false,
              multiMeasureCount: 1,
              sortOrder: 1
            },
            {
              paramId: 'PARAMd8Tp8zYZ',
              paramName: '新参数4',
              paramCode: 'a_390n',
              dataType: 'text',
              paramType: 'base',
              unit: '',
              required: false,
              calculationExpr: '',
              dependencies: [],
              options: [],
              validateRule: {},
              conditionShow: {},
              precision: 1,
              columnWidth: 120,
              placeholder: '',
              isMultiMeasure: false,
              multiMeasureCount: 1,
              sortOrder: 2
            }
          ]
        },
        {
          groupId: 'CHILDlQaA_1',
          groupName: '子组2',
          paramItems: [
            {
              paramId: 'PARAM5qpzSRdM',
              paramName: '新参数5',
              paramCode: 'a_4t2t',
              dataType: 'number',
              paramType: 'base',
              unit: '',
              required: false,
              calculationExpr: '',
              dependencies: [],
              options: [],
              validateRule: {},
              conditionShow: {},
              precision: 1,
              columnWidth: 120,
              placeholder: '',
              isMultiMeasure: false,
              multiMeasureCount: 1,
              sortOrder: 1
            },
            {
              paramId: 'PARAMo5jiZRGW',
              paramName: '新参数6',
              paramCode: 'a_sc4j',
              dataType: 'number',
              paramType: 'calculation',
              unit: '',
              required: false,
              calculationExpr: 'ROUND(a_u9bh * 1.0 + a_4t2t, 2)',
              dependencies: [
                'a_u9bh',
                'a_4t2t'
              ],
              options: [],
              validateRule: {},
              conditionShow: {},
              precision: 1,
              columnWidth: 120,
              placeholder: '',
              isMultiMeasure: false,
              multiMeasureCount: 1,
              sortOrder: 2
            }
          ]
        }
      ],
      paramItems: []
    },
    {
      groupId: 'GRPhRV3zJ_2',
      groupName: '参数组3',
      isNested: false,
      allowDynamicRows: true,
      maxRows: 3,
      sortOrder: 3,
      childGroups: [],
      paramItems: [
        {
          paramId: 'PARAMHPXzBu3J',
          paramName: '新参数7',
          paramCode: 'a_ddoi',
          dataType: 'number',
          paramType: 'base',
          unit: '',
          required: false,
          calculationExpr: '',
          dependencies: [],
          options: [],
          validateRule: {},
          conditionShow: {},
          precision: 1,
          columnWidth: 180,
          placeholder: '',
          isMultiMeasure: true,
          multiMeasureCount: 3,
          sortOrder: 1
        },
        {
          paramId: 'PARAMPTn8RUJC',
          paramName: '新参数8',
          paramCode: 'a_01mv',
          dataType: 'number',
          paramType: 'base',
          unit: '',
          required: false,
          calculationExpr: '',
          dependencies: [],
          options: [],
          validateRule: {},
          conditionShow: {},
          precision: 1,
          columnWidth: 180,
          placeholder: '',
          isMultiMeasure: true,
          multiMeasureCount: 3,
          sortOrder: 2
        },
        {
          paramId: 'PARAMTrGiCRml',
          paramName: '新参数9',
          paramCode: 'a_lomi',
          dataType: 'number',
          paramType: 'calculation',
          unit: '',
          required: false,
          calculationExpr: 'ROUND(AVG(a_ddoi[0].value, a_ddoi[1].value, a_ddoi[2].value) + AVG(a_01mv[0].value, a_01mv[1].value, a_01mv[2].value), 2)',
          dependencies: [
            'a_ddoi',
            'a_01mv'
          ],
          options: [],
          validateRule: {},
          conditionShow: {},
          precision: 1,
          columnWidth: 120,
          placeholder: '',
          isMultiMeasure: false,
          multiMeasureCount: 1,
          sortOrder: 3
        },
        {
          paramId: 'PARAM8TCbuwgk',
          paramName: '新参数10',
          paramCode: '新参_8t0l',
          dataType: 'text',
          paramType: 'base',
          unit: '',
          required: false,
          calculationExpr: '',
          dependencies: [],
          options: [],
          validateRule: {},
          conditionShow: {},
          precision: 1,
          columnWidth: 120,
          placeholder: '',
          isMultiMeasure: false,
          multiMeasureCount: 1,
          sortOrder: 4
        }
      ]
    }
  ]
};

// 模拟接口：获取参数配置
export const getParamConfig = () => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve({
        code: 200,
        data: paramConfig
      });
    }, 500);
  });
};